import { createBrowserRouter } from "react-router-dom";
import ArrayToTree from "@/views/ArrayToTree";
import App from "@/App";
import Flatten from "../views/Flatten";
import ClearRepeat from "../views/ClearRepeat";
import BubbleSort from "../views/BubbleSort";
import MergeArray from "../views/MergeArray";
import FindTarget from "../views/FindTarget";
import FindCondition from "../views/FindCondition";
import ReversalArray from "../views/ReversalArray";
import FindSymmetry from "../views/findSymmetry";
import ZeroToEnd from "../views/ZeroToEnd";
import AntiShake from "../views/AntiShake";
import Throttle from "../views/Throttle";
import DeepCopy from "../views/DeepCopy";

const router = createBrowserRouter([
  {
    path: '/',
    element: <App />
  },
  {
    path: '/arrayToTree',
    element: <ArrayToTree />
  },
  {
    path: '/flatten',
    element: <Flatten />
  },
  {
    path: '/clearRepeat',
    element: <ClearRepeat />
  },
  {
    path: '/bubbleSort',
    element: <BubbleSort />
  },
  {
    path: '/mergeArray',
    element: <MergeArray />
  },
  {
    path: '/findTarget',
    element: <FindTarget />
  },
  {
    path: '/findCondition',
    element: <FindCondition />
  },
  {
    path: '/reversalArray',
    element: <ReversalArray />
  },
  {
    path: '/findSymmetry',
    element: <FindSymmetry />
  },
  {
    path: '/zeroToEnd',
    element: <ZeroToEnd />
  },
  {
    path: '/antiShake', 
    element: <AntiShake />
  },
  {
    path: '/throttle',
    element: <Throttle />
  },
  {
    path: '/deepCopy',
    element: <DeepCopy />
  }
])

export default router